AMD_LWP: add interrupt support for AMD LWP
authorWei Huang <wei.huang2@amd.com>
Fri, 30 Mar 2012 20:05:54 +0000 (21:05 +0100)
committerWei Huang <wei.huang2@amd.com>
Fri, 30 Mar 2012 20:05:54 +0000 (21:05 +0100)
commitd0cb8288cd27e0d2ac49a1f77552ac2f52022127
treefc691dc2ed229339514cf58a3c0278eb71eb8fe2
parent8db87324fc94e93bc84b7fcd94ba678acb9ea4b9
AMD_LWP: add interrupt support for AMD LWP

This patch adds interrupt support for AMD lightweight profiling. It
registers interrupt handler using alloc_direct_apic_vector(). When
notified, SVM reinjects virtual interrupts into guest VM using
guest's virtual local APIC.

Signed-off-by: Wei Huang <wei.huang2@amd.com>
Signed-off-by: Keir Fraser <keir@xen.org>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/hvm/svm/vmcb.h